package com.project.seckill.controller.publicapi;

import com.project.seckill.bo.JsonEntity;
import com.project.seckill.util.ResponseHelper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

/**
 * Created by yachao on 2018/6/24.
 */
@RestController
@RequestMapping("/goods")
public class GoodsPublicApi {

    @RequestMapping("/list")
    public JsonEntity<List<String>> list() {
        List<String> list = Arrays.asList("Iphone 6S", "MacBook Pro", "IPad mini 4");
        return ResponseHelper.of(list);
    }
}
